import requests
import logging

lg = logging.getLogger(__name__)


def main(url, keyword, start_time):
    urls = []

    header = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.36',
    }
    response = requests.get(url, headers=header)
    print(response.status_code)
    # 418--
    lg.info(response.text)
    with open('panyuzufang.html', 'w', encoding='utf-8') as f:
        f.write(response.text)

    group = {}
    group['title']
    group['a']
    group['datatime']

    return urls


if __name__ == "__main__":
    url = 'https://www.douban.com/group/panyuzufang/#topics'
    keyword = '大石'
    start_time = '2023-9-1'
    main(url, keyword, start_time)
